<template>
  <div id="cars">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="应收签证单" name="1">
        <should ref="shouldRef" />
      </el-tab-pane>
      <el-tab-pane label="已收签证单" name="2"
        ><has ref="hasRef" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import should from "./should.vue";
import has from "./has.vue";
export default {
  components: {
    should,
    has,
  },
  data() {
    return {
      activeName: "1",
      tableData: [],
    };
  },
  methods: {
    handleClick() {
      this.activeName == 1
        ? this.$refs.shouldRef.getList()
        : this.$refs.hasRef.getList();
    },
    handleSizeChange() {},
    handleCurrentChange() {},
  },
};
</script>

<style lang="scss" scoped>
.search_box {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
  .el-input,
  .el-select {
    width: 200px;
    margin-right: 20px;
    margin-bottom: 20px;
  }
  .el-date-editor {
    margin-right: 20px;
    margin-bottom: 20px;
  }
  .el-button {
    margin-bottom: 20px;
  }
}
.export_box {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0;
}
.page_table {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
</style>
